package com.qfedu.conntroller;

import com.qfedu.service.Impl.RoomServiceImpl;
import com.qfedu.vo.ResultVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class RoomController {

    @Resource
    private RoomServiceImpl roomService;


    @RequestMapping("selectRoomByCityId/{cid}")
    public ResultVo selectRoomByCityId(@PathVariable("cid") Integer cid){
        return roomService.selectRoomByCityId(cid);
    }



    @RequestMapping("")
    public ResultVo selectRoomByCondition(Integer cid,
                                          Integer pcount,
                                          Double maxPrice,
                                          Double minPrice,
                                          String leaseType,
                                          Integer hid,
                                          Double grade,
                                          Integer start,
                                          Integer end) {
       return null;
    }
}
